package com.mycinema.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.mycinema.biz.UserBiz;
import com.mycinema.dao.UserDao;
import com.mycinema.entity.User;

@Service("userBiz")
@Scope("prototype") //设置单例模式-设置bean的生命周期--通常业务类无需写
public class UserBizImpl implements UserBiz {
	
	@Autowired
	private UserDao uDao;
	
	
	


	public User login(String username, String password) {
		
		return uDao.login(username, password);
	}

}
